﻿
using System.Collections.Generic;
namespace Fozzy.Gedcom
{
    /// <summary>
    /// Converts a GEDCOM file to an XML file.
    /// </summary>
    public class Writer                                             : XFile
    {
        #region Declarations
        #endregion

        #region Properties
        #endregion

        #region Constructeur
            public Writer(string fullname, IEnumerable<IName> concepts)  : base(fullname, concepts)
            {}
        #endregion

            protected override void Prepare()
            {
                base.Prepare()                                          ;
                Write(new Header())                                     ;
            }

            public void Close()
            {
                Write(new Trailer())                                    ;
            }

            //public void Export<concept>(Enumeration<concept> concepts) where concept : IConcept
            //{
            //    concepts.Export(this)                                   ;
            //    Close()                                                 ;
            //}
        }
}
